package com.ygqh.baby.po;

import java.math.BigDecimal;
import java.util.Date;

import com.ygqh.baby.ao.DataStatus;

public class YgSkuMaterial {
    private Long id;

    private Long productId;

    private String skuCode;

    private String productCode;

    private BigDecimal costPrice;

    private DataStatus status;

    private String extMaterial;
    private String component1;
    private String component11;
    private String component12;
    private String component2;
    private String component21;
    private String component22;
    private String component3;
    private String component31;
    private String component32;
    private String component4;
    private String component41;
    private String component42;
    private String component5;
    private String component51;
    private String component52;
    private String grade;

    private String standard;

    private String securityLevel;

    private String abcClass;

    private String barCode;

    private String checkupLevel;

    private String sizeDesc;

    private String tagPrice;
    private Date createTime;

    private String createBy;

    private Date updateTime;

    private String updateBy;
    private YgSku ygSku;
    private String productName;
    private String tagName;
    private String color;
    public YgSku getYgSku() {
		return ygSku;
	}

	public void setYgSku(YgSku ygSku) {
		this.ygSku = ygSku;
	}

	public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public String getSkuCode() {
        return skuCode;
    }

    public void setSkuCode(String skuCode) {
        this.skuCode = skuCode == null ? null : skuCode.trim();
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode == null ? null : productCode.trim();
    }

    public BigDecimal getCostPrice() {
        return costPrice;
    }

    public void setCostPrice(BigDecimal costPrice) {
        this.costPrice = costPrice;
    }

    public DataStatus getStatus() {
        return status;
    }

    public void setStatus(DataStatus status) {
        this.status = status ;
    }

    public String getExtMaterial() {
        return extMaterial;
    }

    public void setExtMaterial(String extMaterial) {
        this.extMaterial = extMaterial == null ? null : extMaterial.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy == null ? null : createBy.trim();
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy == null ? null : updateBy.trim();
    }

	public String getComponent1() {
		return component1;
	}

	public void setComponent1(String component1) {
		this.component1 = component1;
	}

	public String getComponent2() {
		return component2;
	}

	public void setComponent2(String component2) {
		this.component2 = component2;
	}

	public String getComponent3() {
		return component3;
	}

	public void setComponent3(String component3) {
		this.component3 = component3;
	}

	public String getComponent4() {
		return component4;
	}

	public void setComponent4(String component4) {
		this.component4 = component4;
	}

	public String getComponent5() {
		return component5;
	}

	public void setComponent5(String component5) {
		this.component5 = component5;
	}

	public String getGrade() {
		return grade;
	}

	public void setGrade(String grade) {
		this.grade = grade;
	}

	public String getStandard() {
		return standard;
	}

	public void setStandard(String standard) {
		this.standard = standard;
	}

	public String getSecurityLevel() {
		return securityLevel;
	}

	public void setSecurityLevel(String securityLevel) {
		this.securityLevel = securityLevel;
	}

	public String getAbcClass() {
		return abcClass;
	}

	public void setAbcClass(String abcClass) {
		this.abcClass = abcClass;
	}

	public String getBarCode() {
		return barCode;
	}

	public void setBarCode(String barCode) {
		this.barCode = barCode;
	}

	public String getCheckupLevel() {
		return checkupLevel;
	}

	public void setCheckupLevel(String checkupLevel) {
		this.checkupLevel = checkupLevel;
	}

	public String getSizeDesc() {
		return sizeDesc;
	}

	public void setSizeDesc(String sizeDesc) {
		this.sizeDesc = sizeDesc;
	}

	public String getTagPrice() {
		return tagPrice;
	}

	public void setTagPrice(String tagPrice) {
		this.tagPrice = tagPrice;
	}

	public String getComponent11() {
		if(component1!=null)
		return component1.split(":")[0].trim();
		return "";
	}

	public void setComponent11(String component11) {
		this.component11 = component11;
	}

	public String getComponent12() {
		if(component1!=null&&!component1.equals("")&&component1.split(":").length==2)
			return component1.split(":")[1].trim();
			return component1;
	}

	public void setComponent12(String component12) {
		this.component12 = component12;
	}

	public String getComponent21() {
		if(component2!=null&&!component2.equals(""))
			return component2.split(":")[0].trim();
		return "";
	}

	public void setComponent21(String component21) {
		this.component21 = component21;
	}

	public String getComponent22() {
		if(component2!=null&&!component2.equals("")&&component2.split(":").length==2)
			return component2.split(":")[1].trim();
		return component2;
	}

	public void setComponent22(String component22) {
		this.component22 = component22;
	}

	public String getComponent31() {
		if(component3!=null&&!component3.equals("")&&component3.split(":").length==1)
			return "";
		if(component3!=null&&!component3.equals("")&&component3.split(":").length==2)
			return component3.split(":")[0].trim();
		return "";
		
	}

	public void setComponent31(String component31) {
		this.component31 =component31;
	}

	public String getComponent32() {
		
		if(component3!=null&&!component3.equals("")&&component3.split(":").length==2)
			return component3.split(":")[1].trim();
		return component3;
	}

	public void setComponent32(String component32) {
		this.component32 = component32;
	}

	public String getComponent41() {
		if(component4!=null&&!component4.equals(""))
			return component4.split(":")[0].trim();
		return "";
	}

	public void setComponent41(String component41) {
		this.component41 = component41;
	}

	public String getComponent42() {
		if(component4!=null&&!component4.equals("")&&component4.split(":").length==2)
			return component4.split(":")[1].trim();
		return component4;
	}

	public void setComponent42(String component42) {
		this.component42 = component42;
	}

	public String getComponent51() {
		if(component5!=null&&!component5.equals(""))
			return component5.split(":")[0];
		return "";
	}

	public void setComponent51(String component51) {
		this.component51 =component51;
	}

	public String getComponent52() {
		if(component5!=null&&!component5.equals("")&&component5.split(":").length==2)
			return component5.split(":")[1];
		return component5;
	}

	public void setComponent52(String component52) {
		this.component52 = component52;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getTagName() {
		return tagName;
	}

	public void setTagName(String tagName) {
		this.tagName = tagName;
	}

	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color;
	}
	
	
    
}